﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using com.Editors.UserControls;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;

namespace com.code.Editors.Code
{
    public class GuidDataColumn : DataColumn
    {
        private string bindString;

        public string BindString
        {
            get { return bindString; }
            set { bindString = value; }
        }

        private UIAddDatasource objUIDatasource;

        public UIAddDatasource ObjUIDatasource
        {
            get { return objUIDatasource; }
            set { objUIDatasource = value; }
        }
        private UIClientScript objClientScript;

        public UIClientScript ObjClientScript
        {
            get { return objClientScript; }
            set { objClientScript = value; }
        }

        private string colName;
        
        public string ColName
        {            
            get { return colName; }
            set { colName = value; }
        }

        private string colType;

        public string ColType
        {
            get { return colType; }
            set { colType = value; }
        }

        private string tableName;

        public string TableName
        {
            get { return tableName; }
            set { tableName = value; }
        }

        private bool pKey;

        public bool PKey
        {
            get { return pKey; }
            set { pKey = value; }
        }

        private string uiControlType = "";

        public string UiControlType
        {
            get { return uiControlType; }
            set { uiControlType = value; }
        }

        private bool isBindData;

        public bool IsBindData
        {
            get { return isBindData; }
            set { isBindData = value; }
        }

        private bool isDatail;

        public bool IsDatail
        {
            get { return isDatail; }
            set { isDatail = value; }
        }

        private bool isChecked = true;

        public bool IsChecked
        {
            get { return isChecked; }
            set { isChecked = value; }
        }

        private bool isUIScript;

        public bool IsUIScript
        {
            get { return isUIScript; }
            set { isUIScript = value; }
        }


        public GuidDataColumn(string colName)
        {
            this.colName = colName;

        }

        private string prevClass;
        private string prevMethod;
        private bool isNewDatasource;


        private string newTableName;
        private string newExistClass;
        private string newMethodName;
        private string newClassName;
        private bool isGenNewClass;
        private string newSPName;
        private bool isSPProvided;
        private bool isTableProvided;
        private string existClassAddNewMethod;

        private string textDisplay;

        public string TextDisplay
        {
            get { return textDisplay; }
            set { textDisplay = value; }
        }
        private string valueDisplay;

        public string ValueDisplay
        {
            get { return valueDisplay; }
            set { valueDisplay = value; }
        }

        public string ExistClassAddNewMethod
        {
            get { return existClassAddNewMethod; }
            set { existClassAddNewMethod = value; }
        }

        public bool IsTableProvided
        {
            get { return isTableProvided; }
            set { isTableProvided = value; }
        }

        public bool IsSPProvided
        {
            get { return isSPProvided; }
            set { isSPProvided = value; }
        }


        public string NewSPName
        {
            get { return newSPName; }
            set { newSPName = value; }
        }


        public string NewTableName
        {
            get { return newTableName; }
            set { newTableName = value; }
        }


        public bool IsGenNewClass
        {
            get { return isGenNewClass; }
            set { isGenNewClass = value; }
        }


        public string NewClassName
        {
            get { return newClassName; }
            set { newClassName = value; }
        }


        public string NewExistClass
        {
            get { return newExistClass; }
            set { newExistClass = value; }
        }


        public string NewMethodName
        {
            get { return newMethodName; }
            set { newMethodName = value; }
        }

        public bool IsNewDatasource
        {
            get { return isNewDatasource; }
            set { isNewDatasource = value; }
        }

        public string PrevMethod
        {
            get { return prevMethod; }
            set { prevMethod = value; }
        }

        public string PrevClassName
        {
            get { return prevClass; }
            set { prevClass = value; }
        }

        #region "Form validation Properties"

        private bool isRequired;
        private string toNumRange;
        private string fromNumRange;
        private bool isRange;
        private bool isValidEmail;
        private bool isValidDate;
        private bool isValidNum;
        private string msgCaption;

        public string MsgCaption
        {
            get { return msgCaption; }
            set { msgCaption = value; }
        }

        public bool IsRange
        {
            get { return isRange; }
            set { isRange = value; }
        }

        public bool IsValidEmail
        {
            get { return isValidEmail; }
            set { isValidEmail = value; }
        }

        public bool IsValidDate
        {
            get { return isValidDate; }
            set { isValidDate = value; }
        }

        public string FromNumRange
        {
            get { return fromNumRange; }
            set { fromNumRange = value; }
        }

        public string ToNumRange
        {
            get { return toNumRange; }
            set { toNumRange = value; }
        }

        public bool IsRequired
        {
            get { return isRequired; }
            set { isRequired = value; }
        }


        public bool IsValidNum
        {
            get { return isValidNum; }
            set { isValidNum = value; }
        }

        #endregion
    }

}
